go to card short name of this background of background "About"
unlock screen with zoom close
else if menuItem is "Home" then
resetBackground
restoreMenuBar
go home
else if menuItem contains "Quit" then
resetBackground
restoreMenuBar false
go to card "Mac School® Shell"
unlock screen with zoom close
else if menuItem is "School Timetable" then -- View Menu
push card
go to card "School Timetable" of this background
else if menuItem is "Student Requests" then -- Edit Menu
push card
go to card "Student Requests" of this background
else if menuItem is "School (weekly)" OR menuItem is "Student" OR menuItem is "Student (weekly)" OR menuItem is "Timetable Options…" OR menuItem is "Assign Required…" OR menuItem is "Set Sections…" OR menuItem is "Load Teachers…" OR menuItem is "Create Timetable…" OR menuItem is "Assign Students…" OR menuItem is "Performance" then
push card
go to card menuItem of this background
end if
unlock screen
end doMenu
on groupOne
if not hilite of target then
repeat with index = 1 to 8
set hilite of background button id index to false
end repeat
set hilite of target to true
else
push card
go to card line id of target of bg field "Student Name" of this bg
end if
end groupOne
on groupTwo shiftKey
if the shiftKey is down OR shiftKey is down then
if icon of target is "5065" then
repeat with index = 9 to 16
set icon of background button id index to "Md Unchecked Box"
end repeat
else
repeat with index = 9 to 16
set icon of background button id index to "Md Checked Box"
end repeat
end if
else
if icon of target is "5065" then
set icon of target to "Md Unchecked Box"
else set icon of target to "Md Checked Box"
end if
end groupTwo
on editText
repeat with index = 1 to 8
set visible of background button id index to not visible of background button id index
end repeat
repeat with index = 19 to 25
set lockText of background field id index to not lockText of background field id index
end repeat
end editText
on newCard
moveTextFirst
end newCard
on resetBackground
lock screen
set hilite of background button id 1 to true
repeat with index = 2 to 8
set hilite of background button id index to false
end repeat
repeat with index = 9 to 16
set icon of background button id index to "Md Unchecked Box"
end repeat
end resetBackground
on moveTextFirst
--exit moveTextFirst
put bg field "Grade" of first card of this bg into bg field "Grade" of this card
put bg field "Student #" of first card of this bg into bg field "Student #" of this card
put bg field "Student Name" of first card of this bg into bg field "Student Name" of this card
put bg field "Program" of first card of this bg into bg field "Program" of this card
put bg field "Reqst" of first card of this bg into bg field "Reqst" of this card
put bg field "Sched" of first card of this bg into bg field "Sched" of this card
put bg field "Req'd" of first card of this bg into bg field "Req'd" of this card
end moveTextFirst
on moveTextSecond
--exit moveTextSecond
put bg field "Grade" of second card of this bg into bg field "Grade" of this card
put bg field "Student #" of second card of this bg into bg field "Student #" of this card
put bg field "Student Name" of second card of this bg into bg field "Student Name" of this card
put bg field "Program" of second card of this bg into bg field "Program" of this card
put bg field "Reqst" of second card of this bg into bg field "Reqst" of this card
put bg field "Sched" of second card of this bg into bg field "Sched" of this card
put bg field "Req'd" of second card of this bg into bg field "Req'd" of this card
end moveTextSecond
on moveTextThird
--exit moveTextThird
put bg field "Grade" of third card of this bg into bg field "Grade" of this card
put bg field "Student #" of third card of this bg into bg field "Student #" of this card
put bg field "Student Name" of third card of this bg into bg field "Student Name" of this card
put bg field "Program" of third card of this bg into bg field "Program" of this card
put bg field "Reqst" of third card of this bg into bg field "Reqst" of this card
put bg field "Sched" of third card of this bg into bg field "Sched" of this card
put bg field "Req'd" of third card of this bg into bg field "Req'd" of this card
end moveTextThird
on moveTextLast
--exit moveTextLast
put bg field "Grade" of this card into bg field "Grade" of last card of this bg
put bg field "Student #" of this card into bg field "Student #" of last card of this bg
put bg field "Student Name" of this card into bg field "Student Name" of last card of this bg
put bg field "Program" of this card into bg field "Program" of last card of this bg
put bg field "Reqst" of this card into bg field "Reqst" of last card of this bg
put bg field "Sched" of this card into bg field "Sched" of last card of this bg
put bg field "Req'd" of this card into bg field "Req'd" of last card of this bg